
#ifndef _MEMBER_BIMAGE_H_
#define _MEMBER_BIMAGE_H_

#include <BOpenGL>
#include <BImage>

#define image_member(image)		((member_BImage*)((BImage*)image)->_ptr)

namespace BWE
{
	class member_BImage
	{
	public:
		member_BImage(BImage* image);
		~member_BImage();

		BImage*				boss;
		int					formatLen;
		BSize				size;
		Format				format;
		BHolder<BByteArray>	pixels;
		bool				dirty;
	};
}

#endif